package com.itqf.service;

import com.itqf.dto.DtsPermissionDto;
import com.itqf.dto.DtsSearchDto;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * projectName: sm_project
 *
 * @author: 赵伟风
 * time: 2021/7/13 14:11
 * description:角色业务接口
 */
public interface DtsRoleService {

    /**
     * 根据角色id查询角色名称
     * @param roleIds
     * @return
     */
    List<String> queryRoleNames(Integer [] roleIds);

    List<Map> findRoleNames();

    Map queryRoleByPage(DtsSearchDto searchDto);

    boolean checkSuper(int roleId);

    Set<String> queryPermissions(int roleId);

    void removePermission(int roleId);

    void save(DtsPermissionDto permissionDto);
}
